package com.ztesoft.report.controller;

import com.ztesoft.report.IsPermission.annotion.isPermission;
import com.ztesoft.report.base.controller.BaseController;
import com.ztesoft.report.base.pojo.R;
import com.ztesoft.report.entity.Datasource;
import com.ztesoft.report.service.DatasourceService;
import com.ztesoft.report.service.ReportService;
import com.ztesoft.report.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author :xie
 * Email: 1487471733@qq.com
 * Date: 2018/9/19
 * Time: 17:14
 * Describe: 用户按钮权限验证 阻止弹窗表单
 */
@RestController
@RequestMapping("/pression")
@CrossOrigin
public class PressionController  extends BaseController {
    @Autowired
    private UserService userService;

    @Autowired
    private DatasourceService datasourceService;

    /**
     * 验证用户是否能打开报表管理新增或者编辑弹窗
     * @return
     */
    @isPermission(name = "reportMangerEditOrAdd")
    @RequestMapping("/verificateReportMangerEditOrAdd")
    public Object reportMangerEditOrAdd(){



        return R.ok();

    }

    /**
     * 验证用户是否能打开权限弹窗
     * @return
     */
    @isPermission(name="reportMangerPression")
    @RequestMapping("/verificateReportMangerPression")
    public Object verificateReportMangerPression(){

        return R.ok();

    }





}
